package org.lora.biz.ou.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.lora.biz.ou.entity.Organization;
import org.lora.biz.ou.entity.OrganizationExample;
import org.lora.biz.workflow.annotation.RunTimeResource;

/**
 * <p>
 * 类名:OrganizationMapper
 * </p>
 * 描述:组织机构Mapper<br>
 * 创建时间:2016年10月9日 上午11:51:53<br>
 * 
 * @author Bladnir@outlook.com<br>
 *         修改历史:<br>
 *         2016年10月9日 Bladnir 创建<br>
 */
@RunTimeResource
public interface OrganizationMapper {
    int countByExample(OrganizationExample example);

    int deleteByExample(OrganizationExample example);

    int insert(Organization record);

    int insertSelective(Organization record);

    List<Organization> selectByExample(OrganizationExample example);

    int updateByExampleSelective(@Param("record") Organization record, @Param("example") OrganizationExample example);

    int updateByExample(@Param("record") Organization record, @Param("example") OrganizationExample example);
    
    List<Organization> selectAllParent(Map<String,Object> parameterMap);
    
    List<Organization> selectAllChildren(Map<String,Object> parameterMap);
}